require = function s(a, h, r) {
  function c(e, t) {
    if (!h[e]) {
      if (!a[e]) {
        var i = "function" == typeof require && require;
        if (!t && i) return i(e, !0);
        if (d) return d(e, !0);
        var n = new Error("Cannot find module '" + e + "'");
        throw n.code = "MODULE_NOT_FOUND", n
      }
      var o = h[e] = {exports: {}};
      a[e][0].call(o.exports, function (t) {
        return c(a[e][1][t] || t)
      }, o, o.exports, s, a, h, r)
    }
    return h[e].exports
  }

  for (var d = "function" == typeof require && require, t = 0; t < r.length; t++) c(r[t]);
  return c
}({
  BeginScene: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "144d8oJRSVEK47sFGOTccTj", "BeginScene"), Object.defineProperty(i, "__esModule", {value: !0});
    var n = t("./utils"), o = cc._decorator, s = o.ccclass, a = o.property, h = t("./GameScene"), r = t("./wx/wxUtils"),
      c = function (e) {
        function t() {
          var t = null !== e && e.apply(this, arguments) || this;
          return t.btnQRCode = null, t.adSprite = null, t.gameNode = null, t.game = null, t.bg = null, t.bootstrapNode = null, t
        }

        return __extends(t, e), t.prototype.onLoad = function () {
          return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (t) {
              return this.game = this.gameNode.getComponent(h.default), this.initAdSprite(), this.btnQRCode.on("click", this.showAd, this), this.bg.on(cc.Node.EventType.TOUCH_START, function (t) {
              }), n.gameUtils.isRestart && this.onStartTouch(), [2]
            })
          })
        }, t.prototype.onStartTouch = function () {
          var t = this;
          this.node.active = !1, this.game.startGame(), null == r.wxUtils.getBootstrapSync() ? (r.wxUtils.setBootstrap(), this.bootstrapNode.active = !0) : setTimeout(function () {
            t.game.jump()
          }, 200), n.gameUtils.isRestart = !1
        }, t.prototype.phbTouch = function () {
          r.wxUtils.postMessage({message: "rank"}), cc.director.loadScene("testScene")
        }, t.prototype.shareTouch = function () {
          n.sdkUtils.onShare()
        }, t.prototype.initAdSprite = function () {
          return __awaiter(this, void 0, void 0, function () {
            var e = this;
            return __generator(this, function (t) {
              return n.sdkUtils.getAdCanvas(function (t) {
                e.refreshTexture(t)
              }, function () {
                e.adSprite.node.active = !1
              }), [2]
            })
          })
        }, t.prototype.refreshTexture = function (t) {
          var e = new cc.Texture2D;
          e.initWithElement(t), e.handleLoadedTexture();
          var i = cc.view.getVisibleSize();
          this.adSprite.node.width = i.width, this.adSprite.node.height = i.height, this.adSprite.spriteFrame = new cc.SpriteFrame(e), this.adSprite.node.active = !0
        }, t.prototype.showAd = function () {
          n.sdkUtils.showAD()
        }, __decorate([a(cc.Node)], t.prototype, "btnQRCode", void 0), __decorate([a(cc.Sprite)], t.prototype, "adSprite", void 0), __decorate([a(cc.Node)], t.prototype, "gameNode", void 0), __decorate([a(cc.Node)], t.prototype, "bg", void 0), __decorate([a(cc.Node)], t.prototype, "bootstrapNode", void 0), t = __decorate([s], t)
      }(cc.Component);
    i.default = c, cc._RF.pop()
  }, {"./GameScene": "GameScene", "./utils": "utils", "./wx/wxUtils": "wxUtils"}], Bootstrap: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "7343asfsLRLT5/7sWtVnwjL", "Bootstrap"), Object.defineProperty(i, "__esModule", {value: !0});
    var n = t("./GameScene"), o = cc._decorator, s = o.ccclass, a = o.property, h = function (e) {
      function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.bg = null, t.btn = null, t.gameNode = null, t.game = null, t
      }

      return __extends(t, e), t.prototype.onLoad = function () {
        var t = this;
        this.game = this.gameNode.getComponent(n.default), this.bg.on(cc.Node.EventType.TOUCH_START, function () {
        }), this.btn.on("click", function () {
          t.node.active = !1, setTimeout(function () {
            t.game.jump()
          }, 200)
        })
      }, t.prototype.start = function () {
      }, __decorate([a(cc.Node)], t.prototype, "bg", void 0), __decorate([a(cc.Node)], t.prototype, "btn", void 0), __decorate([a(cc.Node)], t.prototype, "gameNode", void 0), t = __decorate([s], t)
    }(cc.Component);
    i.default = h, cc._RF.pop()
  }, {"./GameScene": "GameScene"}], Camera_Control: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "1c5a4Kxc6BGjL1pP1JWeJud", "Camera_Control"), cc.Class({
      extends: cc.Component,
      properties: {target: {default: null, type: cc.Node}},
      onLoad: function () {
        this.camera = this.getComponent(cc.Camera), this.isdie = !1, this.node.position.y = .5 * cc.winSize.height, this.start = !1
      },
      start: function () {
      },
      onEnable: function () {
        cc.director.getPhysicsManager().attachDebugDrawToCamera(this.camera)
      },
      onDisable: function () {
        cc.director.getPhysicsManager().detachDebugDrawFromCamera(this.camera)
      },
      lateUpdate: function (t) {
        var e = this.target.convertToWorldSpaceAR(cc.Vec2.ZERO), i = this.node.parent.convertToNodeSpaceAR(e), n = i.y;
        Math.floor(n) > Math.floor(this.node.position.y) && (this.start = !0), this.start && !this.isdie ? Math.floor(n) > Math.floor(this.node.position.y) && (this.node.position = cc.v2(0, n)) : this.isdie && (this.node.position.y < .5 * cc.winSize.height && (this.node.position.y = .5 * cc.winSize.height), this.node.position = cc.v2(0, n + .45 * cc.winSize.height)), Math.floor(this.node.position.y) - Math.floor(i.y) > .5 * cc.winSize.height && (window.Game.player.getComponent("Player").die(), this.isdie = !0)
      }
    }), cc._RF.pop()
  }, {}], GameScene: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "530a6cPWL5Cj4DrrOzs4+rr", "GameScene"), Object.defineProperty(i, "__esModule", {value: !0});
    var n = cc._decorator.ccclass, o = cc._decorator.property, s = t("./wx/wxUtils"), a = function (e) {
      function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.subDomain = null, t.speedX = 0, t.skySpeed = 0, t.player = null, t.state = 0, t.xinxinbg01 = null, t.xinxinbg02 = null, t.xinxinbg03 = null, t.score = null, t.Ground = null, t.texture = null, t.eatIndex = 0, t.isUpdate = !1, t
      }

      return __extends(t, e), t.prototype.onLoad = function () {
        (window.Game.curScene = this).player = this.node.getChildByName("player"), this.player.opacity = 0, this.player.y = .5 * -cc.winSize.height + 180, this.speedX = 8, cc.director.getPhysicsManager().enabled = !0, cc.director.getPhysicsManager().enabledAccumulator = !0, cc.director.getPhysicsManager().FIXED_TIME_STEP = 1 / 30, cc.director.getCollisionManager().enabled = !0, this.xinxinbg01 = this.node.getChildByName("xinxinbg01"), this.xinxinbg02 = this.node.getChildByName("xinxinbg02"), this.xinxinbg03 = this.node.getChildByName("xinxinbg03"), this.score = this.node.getChildByName("score"), this.Ground = this.node.getChildByName("Ground"), this.Ground.y = .5 * -cc.winSize.height;
        var t = cc.find("Canvas");
        t.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this), t.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this), t.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this), this.texture = new cc.Texture2D, s.wxUtils.postMessage({message: "showGame"});
        var e = cc.view.getVisibleSize();
        s.wxUtils.getSharedCanvas().width = e.width, s.wxUtils.getSharedCanvas().height = e.height, this.eatIndex = 0
      }, t.prototype.update = function (t) {
        var e = this.skySpeed;
        this.xinxinbg01.y = this.xinxinbg01.y - e, this.xinxinbg01.y <= -1251 && (this.xinxinbg01.y = 3127), this.xinxinbg02.y = this.xinxinbg02.y - e, this.xinxinbg02.y <= -1251 && (this.xinxinbg02.y = 3127), this.xinxinbg03.y = this.xinxinbg03.y - e, this.xinxinbg03.y <= -1251 && (this.xinxinbg03.y = 3127), this.updateSubDomain()
      }, t.prototype.startGame = function () {
        this.player.opacity = 255
      }, t.prototype.jump = function () {
        this.player.getComponent("Player").begin_jump()
      }, t.prototype.setScore = function (t) {
        var e = this.score.getComponent(cc.Label), i = parseInt(e.string);
        e.string = i + t, window.Game.GameOverScore = parseInt(e.string), this.eatIndex++, s.wxUtils.postMessage({
          type: "score",
          data: {score: window.Game.GameOverScore}
        })
      }, t.prototype.onTouchStart = function (t) {
        this.player.getComponent("Player").touch_begin(t)
      }, t.prototype.onTouchMove = function (t) {
        this.player.getComponent("Player").touch_move(t)
      }, t.prototype.onTouchEnd = function (t) {
        this.state = 1, this.player.getComponent("Player").touch_end(t)
      }, t.prototype.updateSubDomain = function () {
        this.texture && (this.texture.initWithElement(s.wxUtils.getSharedCanvas()), this.texture.handleLoadedTexture(), this.subDomain.spriteFrame = new cc.SpriteFrame(this.texture))
      }, __decorate([o(cc.Sprite)], t.prototype, "subDomain", void 0), __decorate([o], t.prototype, "skySpeed", void 0), t = __decorate([n], t)
    }(cc.Component);
    i.default = a, cc._RF.pop()
  }, {"./wx/wxUtils": "wxUtils"}], Main: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "2f19aV+FwpOYb5tfHamM67+", "Main"), Object.defineProperty(i, "__esModule", {value: !0});
    var n = t("./utils"), o = cc._decorator, s = o.ccclass, a = o.property, h = function (e) {
      function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.label = null, t.text = "hello", t
      }

      return __extends(t, e), t.prototype.onLoad = function () {
        return __awaiter(this, void 0, void 0, function () {
          return __generator(this, function (t) {
            switch (t.label) {
              case 0:
                return window.Game = {}, cc.director.setDisplayStats(!1), cc.game.setFrameRate(30), [4, n.sdkUtils.init()];
              case 1:
                return t.sent(), [2]
            }
          })
        })
      }, t.prototype.start = function () {
        cc.director.loadScene("GameScene")
      }, __decorate([a(cc.Label)], t.prototype, "label", void 0), __decorate([a], t.prototype, "text", void 0), t = __decorate([s], t)
    }(cc.Component);
    i.default = h, cc._RF.pop()
  }, {"./utils": "utils"}], Player: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "7e30c+q7+9J/KR15gGQDZwM", "Player");
    var n = t("./wx/wxUtils"), o = t("./utils");
    cc.Class({
      extends: cc.Component,
      properties: {
        mixTime: .5,
        speedX: 0,
        runSpeed: 0,
        beginJumpSpeed: 0,
        collisionSpeed: 0,
        gameOverAudio: {default: null, url: cc.AudioClip}
      },
      onLoad: function () {
        (this.body = this.node.getComponent(cc.RigidBody)).enabledContactListener = !0;
        this.spine = this.getComponent("sp.Skeleton");
        var n = this;
        n.spine.setCompleteListener(function (t, e) {
          var i = t.animation ? t.animation.name : "";
          "stand" === i || "idle" === i ? n.GetRandomNum(1, 100) < 30 ? n.spine.setAnimation(0, "idle", !1) : n.spine.setAnimation(0, "stand", !1) : "start" === i ? n.spine.setAnimation(0, "run", !1) : "run" === i ? n.spine.setAnimation(0, "run", !1) : "stop" === i ? n.spine.setAnimation(0, "stand", !1) : "jump_3" === i && n.spine.setAnimation(0, "stand", !1)
        }), this.state = 0, this.posy = this.node.y, this.isbejump = !1
      },
      GetRandomNum: function (t, e) {
        var i = e - t, n = Math.random();
        return t + Math.round(n * i)
      },
      start: function () {
        this.do_stand()
      },
      update: function (t) {
        this.run_mb(t)
      },
      _setMix: function (t, e) {
        this.spine.setMix(t, e, this.mixTime), this.spine.setMix(e, t, this.mixTime)
      },
      do_idle: function () {
        "idle" !== this.spine.animation && this.spine.setAnimation(0, "idle", !1)
      },
      do_jump_1: function () {
        this.spine.setAnimation(0, "jump_1", !1), this.spine.addAnimation(0, "jump_2", !1)
      },
      do_jump_2: function () {
        "jump_2" !== this.spine.animation && this.spine.setAnimation(0, "jump_2", !0)
      },
      do_jump_3: function () {
        var t = this;
        "jump_3" !== this.spine.animation && (this.spine.setAnimation(0, "jump_3", !1), setTimeout(function () {
          t.begin_jump()
        }, 200))
      },
      do_run: function () {
        "run" !== this.spine.animation && this.spine.setAnimation(0, "run", !1)
      },
      do_stand: function () {
        var t = this.spine.animation;
        "stand" !== t && "idle" !== t && this.spine.setAnimation(0, "stand", !1)
      },
      do_start: function () {
        var t = this.spine.animation;
        "start" !== t && "run" !== t && this.spine.setAnimation(0, "start", !1)
      },
      do_stop: function () {
        var t = this.spine.animation;
        "stop" !== t && "stand" !== t && "idle" !== t && this.spine.setAnimation(0, "stop", !1)
      },
      onBeginContact: function (t, e, i) {
        if (100 === i.tag) 0 === this.state || 1 !== this.state && 2 !== this.state || (this.isbejump ? this.gameOver() : (this.state = 0, this.do_jump_3())); else {
          var n = i.getComponent("SmallBell").isdie();
          if (1 === this.state && !n) {
            var o = this.body.linearVelocity;
            this.body.linearVelocity = cc.v2(o.x, this.collisionSpeed), this.do_jump_1(), this.isbejump = !0
          }
        }
      },
      gameOver: function () {
        this.state = 0, this.isbejump = !1, cc.audioEngine.playEffect(this.gameOverAudio, !1), window.Game.toPhbType = "js", n.wxUtils.showLoading({
          title: "加载中",
          mask: !0
        }), cc.director.loadScene("testScene", function () {
          n.wxUtils.postMessage({
            message: "getData",
            score: Game.GameOverScore,
            openid: o.sdkUtils.openId
          }), setTimeout(function () {
            n.wxUtils.hideLoading()
          }, 200)
        })
      },
      run_mb: function (t) {
        if (this.pos) {
          var e = this.pos.x - .5 * cc.winSize.width, i = this.node.x;
          i - e < 0 ? (this.node.x += this.speedX * t, this.node.x > e && (this.node.x = e, this.pos = null), 0 === this.state && this.do_start()) : 0 < i - e ? (this.node.x -= this.speedX * t, this.node.x < e && (this.node.x = e, this.pos = null), 0 === this.state && this.do_start()) : 0 === this.state && this.do_stop()
        }
        1 === this.state || 2 === this.state && this.dieH - this.node.y > .5 * cc.winSize.height && this.gameOver()
      },
      die: function () {
        this.state = 2, this.dieH = this.node.y
      },
      setDirection: function () {
        var t = this.pos.x - .5 * cc.winSize.width, e = this.node.x;
        e - t < -8 ? this.node.setScaleX(1) : 8 < e - t && this.node.setScaleX(-1)
      },
      touch_begin: function (t) {
        this.pos = cc.v2(t.touch.getLocation()), this.setDirection()
      },
      touch_move: function (t) {
        this.pos = cc.v2(t.touch.getLocation()), this.setDirection()
      },
      touch_end: function (t) {
        this.pos = cc.v2(t.touch.getLocation()), this.state
      },
      begin_jump: function () {
        this.state = 1, this.body.linearVelocity = cc.v2(0, this.beginJumpSpeed), this.do_jump_1()
      },
      onEndContact: function (t, e, i) {
      },
      onPreSolve: function (t, e, i) {
      },
      onPostSolve: function (t, e, i) {
      }
    }), cc._RF.pop()
  }, {"./utils": "utils", "./wx/wxUtils": "wxUtils"}], SmallBellMgr: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "61069uwB5hAgKzSv3iFXXwa", "SmallBellMgr"), cc.Class({
      extends: cc.Component,
      properties: {
        smallBellPrefab: {default: null, type: cc.Prefab},
        player: {default: null, type: cc.Node},
        heightSpacingA: 0,
        heightSpacingB: 0,
        widthSpacing: 0,
        smallImageWidth: 0,
        speed: 0
      },
      onLoad: function () {
        this.smallBellPool = new cc.NodePool;
        window.Game.player = this.player;
        for (var t = 0; t < 15; ++t) {
          var e = cc.instantiate(this.smallBellPrefab);
          this.smallBellPool.put(e)
        }
        this.index = 0, this.smallHeight = 0, this.time = 0;
        for (var i = this.smallWidth = 0; i < 15; ++i) this.addSmallBell()
      },
      start: function () {
      },
      addSmallBell: function () {
        this.index = this.index + 1;
        var t = this.GetRandomNum(this.heightSpacingA, this.heightSpacingB);
        this.smallHeight = this.smallHeight + t;
        var e = this.smallWidth + this.GetRandomNum(-this.widthSpacing, this.widthSpacing);
        e <= .5 * -cc.winSize.width + .5 * this.smallImageWidth && (e = this.GetRandomNum(.5 * -cc.winSize.width + .5 * this.smallImageWidth, .5 * cc.winSize.width - .5 * this.smallImageWidth)), e >= .5 * cc.winSize.width - .5 * this.smallImageWidth && (e = this.GetRandomNum(.5 * -cc.winSize.width + .5 * this.smallImageWidth, .5 * cc.winSize.width - .5 * this.smallImageWidth)), this.smallWidth = e;
        var i = null;
        (i = 0 < this.smallBellPool.size() ? this.smallBellPool.get() : cc.instantiate(this.smallBellPrefab)).parent = this.node, i.y = this.smallHeight - this.time * this.speed, i.x = e, i.tag = this.index, i.name = "loop" + this.index, i.getComponent("SmallBell").init(this, i)
      },
      update: function (t) {
        !1 === this.player.getComponent("Player").isbejump && (this.time = this.time + t)
      },
      GetRandomNum: function (t, e) {
        var i = e - t, n = Math.random();
        return t + Math.round(n * i)
      }
    }), cc._RF.pop()
  }, {}], SmallBell: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "6b2e8OQy6xGr561yZ+50w9q", "SmallBell"), cc.Class({
      extends: cc.Component,
      properties: {
        speed: 0,
        speedMoveUp: 0,
        speedMoveDown: 0,
        moveRandom: 0,
        xingRandom: 0,
        score01: 0,
        score02: 0,
        score03: 0,
        dieHeight: 0,
        jumpAudio01: {default: null, url: cc.AudioClip},
        jumpAudio02: {default: null, url: cc.AudioClip},
        jumpAudio03: {default: null, url: cc.AudioClip}
      },
      onLoad: function () {
        var i = this;
        this.body = this.node.getComponent(cc.RigidBody), this.body.enabledContactListener = !0, this.imgType = 0;
        this.spine = this.node.getChildByName("bell").getComponent("sp.Skeleton");
        var n = this;
        n.spine.setCompleteListener(function (t, e) {
          (t.animation ? t.animation.name : "") === n.dieAm && (i.node.getChildByName("bell").active = !1, n.isDie = !0)
        }), this.moveDirection = 0
      },
      onDestroy: function () {
      },
      update: function (t) {
        !1 === window.Game.player.getComponent("Player").isbejump && (this.node.y -= this.speed * t), 1 === this.imgType && (0 === this.moveDirection ? (this.node.x -= this.speedMove * t, this.node.x <= .5 * -cc.winSize.width + 60 && (this.moveDirection = 1)) : (this.node.x += this.speedMove * t, this.node.x >= .5 * cc.winSize.width - 60 && (this.moveDirection = 0)));
        var e = this.node.parent.convertToWorldSpaceAR(this.node);
        (window.Game.player.parent.convertToWorldSpaceAR(window.Game.player).y - e.y > .5 * cc.winSize.height || e.y < cc.winSize.height * this.dieHeight * .01) && (this.isPutSelf || (this.isPutSelf = !0, this.moveCallFunc()))
      },
      onBeginContact: function (t, e, i) {
        if (this.do_die(), !this.isDie) {
          var n = cc.fadeIn(.1), o = cc.delayTime(.8), s = cc.fadeOut(.5), a = cc.sequence(n, o, s),
            h = this.node.getChildByName("score");
          h.runAction(a);
          var r = h.getComponent(cc.Label);
          1 === this.imgType ? (r.string = "+" + this.score01, Game.curScene.setScore(this.score01), cc.audioEngine.playEffect(this.jumpAudio02, !1)) : 2 === this.imgType ? (r.string = "+" + this.score02, Game.curScene.setScore(this.score02), cc.audioEngine.playEffect(this.jumpAudio03, !1)) : (r.string = "+" + this.score03, Game.curScene.setScore(this.score03), cc.audioEngine.playEffect(this.jumpAudio01, !1))
        }
      },
      GetRandomNum: function (t, e) {
        var i = e - t, n = Math.random();
        return t + Math.round(n * i)
      },
      init: function (t, e) {
        this.smallBellMgr = t, this.smallBellObject = e, this.speedMove = this.GetRandomNum(this.speedMoveDown, this.speedMoveUp);
        var i = this.GetRandomNum(1, 9999);
        0 < i && i < this.moveRandom && !0 === window.Game.player.getComponent("Player").isbejump ? (this.imgType = 1, this.standAm = "yu_stand", this.dieAm = "yu_die") : i > this.moveRandom && i < this.moveRandom + this.xingRandom && 20 < window.Game.curScene.eatIndex ? (this.imgType = 2, this.standAm = "xing_stand", this.dieAm = "xing_die") : (this.imgType = 0, this.attNum = this.GetRandomNum(1, 5), 1 === this.attNum ? (this.standAm = "yun1_stand", this.dieAm = "yun1_die") : 2 === this.attNum ? (this.standAm = "yun2_stand", this.dieAm = "yun2_die") : 3 === this.attNum ? (this.standAm = "yun3_stand", this.dieAm = "yun3_die") : 4 === this.attNum ? (this.standAm = "yun4_stand", this.dieAm = "yun4_die") : 5 === this.attNum && (this.standAm = "yun5_stand", this.dieAm = "yun5_die")), this.do_stand(), this.node.getChildByName("bell").active = !0;
        var n = cc.fadeOut(.1);
        this.node.getChildByName("score").runAction(n), this.isDie = !1, this.isPutSelf = !1
      },
      do_stand: function () {
        this.spine.setAnimation(0, this.standAm, !0)
      },
      do_die: function () {
        this.spine.setAnimation(0, this.dieAm, !1)
      },
      putSelf: function () {
        this.isPutSelf || (this.isPutSelf = !0, this.do_die())
      },
      isdie: function () {
        return this.isDie
      },
      moveCallFunc: function () {
        this.smallBellMgr.smallBellPool.put(this.node), this.smallBellMgr.addSmallBell()
      }
    }), cc._RF.pop()
  }, {}], lanuch: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "3be8dXlGRhKv6jes5maV/kh", "lanuch");
    var n = t("../Script/wx/wxUtils");
    cc.Class({
      extends: cc.Component, properties: {display: cc.Sprite}, start: function () {
        this._isShow = !0, this.tex = new cc.Texture2D
      }, onClick: function () {
        this._isShow = !this._isShow, wx.postMessage({message: this._isShow ? "Show" : "Hide"})
      }, _updaetSubDomainCanvas: function () {
        this.tex && (this.tex.initWithElement(n.wxUtils.getSharedCanvas()), this.tex.handleLoadedTexture(), this.display.spriteFrame = new cc.SpriteFrame(this.tex))
      }, update: function () {
        this._updaetSubDomainCanvas()
      }
    }), cc._RF.pop()
  }, {"../Script/wx/wxUtils": "wxUtils"}], sdwWx: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "ea777PPXO5F6bPWNUal4+nS", "sdwWx"), e.exports = function (i) {
      function n(t) {
        if (o[t]) return o[t].exports;
        var e = o[t] = {i: t, l: !1, exports: {}};
        return i[t].call(e.exports, e, e.exports, n), e.l = !0, e.exports
      }

      var o = {};
      return n.m = i, n.c = o, n.i = function (t) {
        return t
      }, n.d = function (t, e, i) {
        n.o(t, e) || Object.defineProperty(t, e, {configurable: !1, enumerable: !0, get: i})
      }, n.n = function (t) {
        var e = t && t.__esModule ? function () {
          return t.default
        } : function () {
          return t
        };
        return n.d(e, "a", e), e
      }, n.o = function (t, e) {
        return Object.prototype.hasOwnProperty.call(t, e)
      }, n.p = "", n(n.s = 15)
    }([function (t, e, i) {
      function n(t) {
        t = t || {}, this.width = t.width || 0, this.height = t.height || 0, this.x = t.x || 0, this.y = t.y || 0, this._name = t.name || -1, this.childNodes = [], this.parentNode = null, this.visible = !0, this.zIndex = -1, this.through = "boolean" == typeof t.through && t.through, this.dataset = {}, void 0 !== t.visible && this.setVisible(t.visible)
      }

      var o = 0;
      n.prototype.getNODE_ID = function () {
        return o++
      }, n.prototype._addChild = function (t) {
        t.NODE_ID || (t.NODE_ID = this.getNODE_ID()), (t.parentNode = this).computedChildPosition(t)
      }, n.prototype.addChild = function (t) {
        this._addChild(t), this.childNodes.push(t)
      }, n.prototype.removeChildByName = function (t) {
        if ("string" != typeof t) return null;
        for (var e = 0; e < this.childNodes.length; e++) if (this.childNodes[e]._name === t) return this.childNodes.splice(e, 1);
        return null
      }, n.prototype.getChildByName = function (t) {
        if ("string" != typeof t) return null;
        for (var e = 0; e < this.childNodes.length; e++) if (this.childNodes[e]._name === t) return this.childNodes[e];
        return null
      }, n.prototype.computedChildPosition = function (t) {
        t.x += this.x, t.y += this.y
      }, n.prototype.setVisible = function (t, e) {
        if (this.visible = t, !e) for (var i = 0; i < this.childNodes.length; i++) this.childNodes[i].setVisible(t)
      }, n.prototype.setThrough = function (t, e) {
        if (this.through = t, !e) for (var i = 0; i < this.childNodes.length; i++) this.childNodes[i].setThrough(t)
      }, n.prototype.setPosition = function (t, e) {
        t = t || this.x, e = e || this.y;
        var i = this.x - t, n = this.y - e;
        this.x = t, this.y = e;
        for (var o = 0; o < this.childNodes.length; o++) {
          var s = (s = this.childNodes[o].x) - i, a = (a = this.childNodes[o].y) - n;
          this.childNodes[o].setPosition(s, a)
        }
      }, n.prototype._update = function () {
      }, n.prototype.update = function () {
      }, n.prototype.draw = function () {
        this.visible && this._draw()
      }, n.prototype._draw = function () {
        this.childNodes.forEach(function (t) {
          t.visible && t.update(), t.draw && t.draw()
        })
      }, n.prototype.on = function (t, e) {
        this[t] = e, this[t + "-once"] = !1
      }, n.prototype.off = function (t) {
        this["" + t] = null
      }, n.prototype.once = function (t, e) {
        this.on(t, e), this[t + "-once"] = !0
      }, t.exports = n
    }, function (t, e, i) {
      function n(t) {
        (t = t || {}).list = t.list || [], this.loaded = 0, this.loadeLength = t.list.length, this.success = t.success, this.error = t.error;
        var e = this;
        return t.list.forEach(function (t) {
          e.loadFile(t)
        }), this
      }

      var o = i(2), s = {};
      n.prototype.loadFileComplete = function () {
        this.loaded++;
        var t = this;
        this.loaded === this.loadeLength && setTimeout(function () {
          t.success && t.success()
        }, 20)
      }, n.prototype.loadFile = function (e) {
        var i = this;
        if (s[e]) this.loadFileComplete(); else if (/\.(jpg|png)/.test(e)) {
          var t = "undefined" != typeof wx ? wx.createImage() : new Image;
          t.src = e, t.crossOrigin = "anonymous", t.onload = function () {
            s[e] = t, i.loadFileComplete()
          }, t.onerror = function () {
            console.log("loadFile[fail]:" + e), i.error && i.error({message: "loadFile[fail]:" + e})
          }
        } else if (/\.mp3/.test(e)) if (o.onMiniProgram) i.loadFileComplete(); else {
          var n = new XMLHttpRequest;
          n.open("GET", e, !0), n.responseType = "arraybuffer", n.onload = function () {
            i.audioContext.decodeAudioData(n.response, function (t) {
              s[e] = t, i.loadFileComplete()
            })
          }, n.send()
        }
      }, n.prototype.getRes = function (t) {
        return s[t] ? s[t] : null
      }, t.exports = n
    }, function (t, e, i) {
      if ((e = {}).onMiniProgram = "undefined" != typeof wx, e.onMiniProgram) try {
        var n = wx.getSystemInfoSync();
        e.width = n.windowWidth, e.height = n.windowHeight, e.pixelRatio = n.pixelRatio
      } catch (t) {
        e.pixelRatio = 1
      } else n = navigator.userAgent, e.width = document.documentElement.clientWidth || document.body.clientWidth, e.height = document.documentElement.clientHeight || document.body.clientHeight, e.pixelRatio = window.devicePixelRatio || 1, e.onIOS = !!n.match(/\(i[^;]+;(U;)? CPU.+Mac OS X/), e.onMobile = !!n.match(/AppleWebKit.*Mobile.*/), e.onAndriod = -1 < n.indexOf("Android") || -1 < n.indexOf("Adr");
      t.exports = e
    }, function (t, e, i) {
      function n(t) {
        t = t || {}, o.call(this, t), this.fillStyle = t.fillStyle || "#efefef", t.texture ? this.texture = t.texture : t.url && (this.url = t.url, this.loadTexture()), this.round = t.round
      }

      var o = i(0), s = i(1);
      (n.prototype = new o).loadTexture = function () {
        var e = this, i = new s({
          list: [this.url], success: function (t) {
            t = i.getRes(e.url), e.setTexture(t), e.stage.draw()
          }
        })
      }, n.prototype.setTexture = function (t) {
        this.texture = t
      }, n.prototype.draw = function () {
        this.visible && (this.context.save(), this.context.fillStyle = this.fillStyle, this.round && this.stage.setRoundClipPath(this.x, this.y, this.width, this.height, this.round), this.context.fillRect(this.x, this.y, this.width, this.height), this.context.restore(), this._draw())
      }, t.exports = n
    }, function (t, e, i) {
      function n(t) {
        t = t || {}, o.call(this, t);
        var i = this;
        Object.defineProperty(this, "overflow", {
          set: function (t, e) {
            i.preCheck(t)
          }
        }), this._text = t.text, this.fillStyle = t.fillStyle, this._fontSize = t.fontSize || 16, this.maxWidth = t.maxWidth, this.maxHeight = t.maxHeight, this.lineHeight = t.lineHeight || this._fontSize, this.textAlign = t.textAlign || "left", this.overflow = t.overflow
      }

      var o = i(0);
      (n.prototype = new o).preCheck = function (t) {
        if (this.height = this._fontSize, this.width = this._text.length * this._fontSize, this.fontSize = this._fontSize, this.text = this._text, this.multiTextArray = null, this.maxWidth) {
          this.width = this.maxWidth;
          var e = this.maxWidth / this.fontSize >> 0;
          if ("auto" === t) this.height = this.fontSize = e = this.maxWidth / this.text.length >> 0; else if ("ellipsis" === t) this.text = this._text.substring(0, e - 1) + "..."; else if ("multi" === t) {
            t = Math.ceil(this._text.length / e), this.multiTextArray = [];
            for (var i = 0; i < t; i++) {
              var n = i * this.lineHeight;
              this.multiTextArray.push({
                text: this._text.substring(i * e, e + i * e),
                x: 0,
                y: n
              }), this.height = n + this.lineHeight
            }
          } else this.text = this._text.substring(0, e)
        }
      }, n.prototype.draw = function () {
        if (this.visible) {
          this.context.fillStyle = this.fillStyle, this.context.font = this.fontSize + "px arial", this.context.textAlign = this.textAlign;
          var t = (this.lineHeight - this.fontSize) / 2;
          if (this.multiTextArray) for (var e = 0; e < this.multiTextArray.length; e++) {
            var i = this.multiTextArray[e];
            this.context.fillText(i.text, i.x + this.x, i.y + this.y + t)
          } else this.context.fillText(this.text, this.x, this.y + t);
          this._draw()
        }
      }, t.exports = n
    }, function (t, e, i) {
      function n(t) {
        t = t || {}, o.call(this, t), this.drawType = t.drawType || "", (this.borderData = t.borderData || null) && "sliced" === this.drawType && (this.borderData = this.getBorderData(this.borderData)), this.round = t.round || [], t.texture ? this.setTexture(t.texture) : t.url && this.setUrl(t.url, {
          width: this.width,
          height: this.height
        })
      }

      var o = i(0), s = i(1);
      (n.prototype = new o).setTexture = function (t, e) {
        e = e || {}, this.texture = t, this.width = e.width || t.width, this.height = e.height || t.height
      }, n.prototype.setUrl = function (t, e) {
        e = e || {}, this.texture = null, this.url = t, this.loadTexture(e)
      }, n.prototype.loadTexture = function (e) {
        e = e || {};
        var i = this, n = new s({
          list: [this.url], success: function (t) {
            t = n.getRes(i.url), i.setTexture(t, e), i.stage.draw()
          }
        })
      }, n.prototype.getBorderData = function (t) {
        var e = (t = t || {}).tWidth / 3, i = t.tHeight / 3;
        t.right = t.right || e, t.left = t.left || e, t.top = t.top || i, t.bottom = t.bottom || i;
        e = t.top, i = t.left;
        var n = t.right, o = t.bottom, s = t.tWidth - i - n, a = t.dWidth - i - n, h = t.tHeight - e - o,
          r = t.dHeight - e - o, c = t.tWidth - n, d = t.tHeight - o, l = t.dWidth - n, u = t.dHeight - o;
        return t.drawList = [{cx: 0, cy: 0, cw: i, ch: e, dx: 0, dy: 0, dw: i, dh: e}, {
          cx: i,
          cy: 0,
          cw: s,
          ch: e,
          dx: i,
          dy: 0,
          dw: a,
          dh: e
        }, {cx: c, cy: 0, cw: n, ch: e, dx: l, dy: 0, dw: n, dh: e}, {
          cx: 0,
          cy: e,
          cw: i,
          ch: h,
          dx: 0,
          dy: e,
          dw: i,
          dh: r
        }, {cx: i, cy: e, cw: s, ch: h, dx: i, dy: e, dw: a, dh: r}, {
          cx: c,
          cy: e,
          cw: n,
          ch: h,
          dx: l,
          dy: e,
          dw: n,
          dh: r
        }, {cx: 0, cy: d, cw: i, ch: o, dx: 0, dy: u, dw: i, dh: o}, {
          cx: i,
          cy: d,
          cw: s,
          ch: o,
          dx: i,
          dy: u,
          dw: a,
          dh: o
        }, {cx: c, cy: d, cw: n, ch: o, dx: l, dy: u, dw: n, dh: o}], t
      }, n.prototype.draw = function () {
        if (this.visible) {
          if (this.texture) if ("sliced" === this.drawType && this.borderData) for (var t = 0; t < this.borderData.drawList.length; t++) {
            var e = this.borderData.drawList[t];
            this.context.drawImage(this.texture, e.cx, e.cy, e.cw, e.ch, e.dx + this.x, e.dy + this.y, e.dw, e.dh)
          } else "round" === this.drawType && this.round ? (this.context.save(), this.stage.setRoundClipPath(this.x, this.y, this.width, this.height, this.round), this.context.drawImage(this.texture, this.x, this.y, this.width, this.height), this.context.restore()) : this.context.drawImage(this.texture, this.x, this.y, this.width, this.height);
          this._draw()
        }
      }, t.exports = n
    }, function (t, e, i) {
      function l(t, e) {
        var i = (65535 & t) + (65535 & e);
        return (t >> 16) + (e >> 16) + (i >> 16) << 16 | 65535 & i
      }

      function u(t, e, i, n, o, s) {
        return l((t = l(l(e, t), l(n, s))) << o | t >>> 32 - o, i)
      }

      function p(t, e, i, n, o, s, a) {
        return u(e & i | ~e & n, t, e, o, s, a)
      }

      function f(t, e, i, n, o, s, a) {
        return u(e & n | i & ~n, t, e, o, s, a)
      }

      function g(t, e, i, n, o, s, a) {
        return u(i ^ (e | ~n), t, e, o, s, a)
      }

      function a(t, e) {
        t[e >> 5] |= 128 << e % 32, t[14 + (e + 64 >>> 9 << 4)] = e;
        var i, n, o, s, a, h = 1732584193, r = -271733879, c = -1732584194, d = 271733878;
        for (i = 0; i < t.length; i += 16) r = g(r = g(r = g(r = g(r = u((c = u((d = u((h = u((r = u((c = u((d = u((h = u((r = u((c = u((d = u((h = u((r = u((c = u((d = u((h = u((r = f(r = f(r = f(r = f(r = p(r = p(r = p(r = p(o = r, c = p(s = c, d = p(a = d, h = p(n = h, r, c, d, t[i], 7, -680876936), r, c, t[i + 1], 12, -389564586), h, r, t[i + 2], 17, 606105819), d, h, t[i + 3], 22, -1044525330), c = p(c, d = p(d, h = p(h, r, c, d, t[i + 4], 7, -176418897), r, c, t[i + 5], 12, 1200080426), h, r, t[i + 6], 17, -1473231341), d, h, t[i + 7], 22, -45705983), c = p(c, d = p(d, h = p(h, r, c, d, t[i + 8], 7, 1770035416), r, c, t[i + 9], 12, -1958414417), h, r, t[i + 10], 17, -42063), d, h, t[i + 11], 22, -1990404162), c = p(c, d = p(d, h = p(h, r, c, d, t[i + 12], 7, 1804603682), r, c, t[i + 13], 12, -40341101), h, r, t[i + 14], 17, -1502002290), d, h, t[i + 15], 22, 1236535329), c = f(c, d = f(d, h = f(h, r, c, d, t[i + 1], 5, -165796510), r, c, t[i + 6], 9, -1069501632), h, r, t[i + 11], 14, 643717713), d, h, t[i], 20, -373897302), c = f(c, d = f(d, h = f(h, r, c, d, t[i + 5], 5, -701558691), r, c, t[i + 10], 9, 38016083), h, r, t[i + 15], 14, -660478335), d, h, t[i + 4], 20, -405537848), c = f(c, d = f(d, h = f(h, r, c, d, t[i + 9], 5, 568446438), r, c, t[i + 14], 9, -1019803690), h, r, t[i + 3], 14, -187363961), d, h, t[i + 8], 20, 1163531501), c = f(c, d = f(d, h = f(h, r, c, d, t[i + 13], 5, -1444681467), r, c, t[i + 2], 9, -51403784), h, r, t[i + 7], 14, 1735328473), d, h, t[i + 12], 20, -1926607734)) ^ c ^ d, h, r, t[i + 5], 4, -378558)) ^ r ^ c, d, h, t[i + 8], 11, -2022574463)) ^ h ^ r, c, d, t[i + 11], 16, 1839030562)) ^ d ^ h, r, c, t[i + 14], 23, -35309556)) ^ c ^ d, h, r, t[i + 1], 4, -1530992060)) ^ r ^ c, d, h, t[i + 4], 11, 1272893353)) ^ h ^ r, c, d, t[i + 7], 16, -155497632)) ^ d ^ h, r, c, t[i + 10], 23, -1094730640)) ^ c ^ d, h, r, t[i + 13], 4, 681279174)) ^ r ^ c, d, h, t[i], 11, -358537222)) ^ h ^ r, c, d, t[i + 3], 16, -722521979)) ^ d ^ h, r, c, t[i + 6], 23, 76029189)) ^ c ^ d, h, r, t[i + 9], 4, -640364487)) ^ r ^ c, d, h, t[i + 12], 11, -421815835)) ^ h ^ r, c, d, t[i + 15], 16, 530742520)) ^ d ^ h, r, c, t[i + 2], 23, -995338651), c = g(c, d = g(d, h = g(h, r, c, d, t[i], 6, -198630844), r, c, t[i + 7], 10, 1126891415), h, r, t[i + 14], 15, -1416354905), d, h, t[i + 5], 21, -57434055), c = g(c, d = g(d, h = g(h, r, c, d, t[i + 12], 6, 1700485571), r, c, t[i + 3], 10, -1894986606), h, r, t[i + 10], 15, -1051523), d, h, t[i + 1], 21, -2054922799), c = g(c, d = g(d, h = g(h, r, c, d, t[i + 8], 6, 1873313359), r, c, t[i + 15], 10, -30611744), h, r, t[i + 6], 15, -1560198380), d, h, t[i + 13], 21, 1309151649), c = g(c, d = g(d, h = g(h, r, c, d, t[i + 4], 6, -145523070), r, c, t[i + 11], 10, -1120210379), h, r, t[i + 2], 15, 718787259), d, h, t[i + 9], 21, -343485551), h = l(h, n), r = l(r, o), c = l(c, s), d = l(d, a);
        return [h, r, c, d]
      }

      function h(t) {
        var e, i = "", n = 32 * t.length;
        for (e = 0; e < n; e += 8) i += String.fromCharCode(t[e >> 5] >>> e % 32 & 255);
        return i
      }

      function r(t) {
        var e, i = [];
        for (i[(t.length >> 2) - 1] = void 0, e = 0; e < i.length; e += 1) i[e] = 0;
        var n = 8 * t.length;
        for (e = 0; e < n; e += 8) i[e >> 5] |= (255 & t.charCodeAt(e / 8)) << e % 32;
        return i
      }

      function n(t) {
        return h(a(r(t), 8 * t.length))
      }

      function o(t, e) {
        var i, n = r(t), o = [], s = [];
        for (o[15] = s[15] = void 0, 16 < n.length && (n = a(n, 8 * t.length)), i = 0; i < 16; i += 1) o[i] = 909522486 ^ n[i], s[i] = 1549556828 ^ n[i];
        return i = a(o.concat(r(e)), 512 + 8 * e.length), h(a(s.concat(i), 640))
      }

      function s(t) {
        var e, i, n = "";
        for (i = 0; i < t.length; i += 1) e = t.charCodeAt(i), n += "0123456789abcdef".charAt(e >>> 4 & 15) + "0123456789abcdef".charAt(15 & e);
        return n
      }

      t.exports = function (t, e, i) {
        return e ? i ? t = o(unescape(encodeURIComponent(e)), unescape(encodeURIComponent(t))) : t = s(t = o(unescape(encodeURIComponent(e)), unescape(encodeURIComponent(t)))) : t = i ? n(unescape(encodeURIComponent(t))) : s(n(unescape(encodeURIComponent(t)))), t
      }
    }, function (t, e, i) {
      var s = i(10);
      t.exports = function (m) {
        var w = {
          _map: {}, getFile: function (e) {
            e = e || {};
            var i = this;
            i._map[e.url] ? e.success && e.success(e.url) : wx.downloadFile({
              url: e.url, success: function (t) {
                i._map[e.url] = t.tempFilePath, e.success && e.success(t.tempFilePath)
              }, fail: function (t) {
                e.fail && e.fail(t)
              }
            })
          }
        };
        return function (e) {
          function d() {
            o._created = !0, e.create && e.create({
              width: l.width,
              height: l.height,
              flag: f.flag,
              adInfo: f
            }), o._createdCallback && (o._createdCallback = !1, o.showAD())
          }

          if (e = e || {}, m.onMiniProgram) {
            var l, u, p, i = e.width, n = e.height, o = this,
              f = {preLoadList: ["http://www.shandw.com/m/wx/finger-icon.png", "http://www.shandw.com/m/wx/finger-icon2.png", "http://www.shandw.com/m/wx/save-code.png"]},
              g = e.landscape ? 1334 : 750;
            if ((l = new s({
              width: i,
              height: n,
              scale: e.width / g,
              autoRefresh: !1,
              scaleRatio: g / (m.CLIENT.width / m.CLIENT.pixelRatio),
              update: function () {
                o.CP_CALL && o.showAD()
              }
            })).setVisible(!1, !0), console.log("stage.canvas", l.canvas), this._created = !1, this._createdCallback = null, this.showAD = function () {
              this.CP_CALL = !0, this._created ? (l && l.setVisible(!0, !0), e.show && e.show(l.canvas)) : e.show && (this._createdCallback = !0)
            }, this.hiddenAD = function () {
              l && l.setVisible(!1, !0), e.hidden && e.hidden()
            }, 2 === m.checkState && m._USER_INFO) {
              var t = {
                id: e.id || m.getAppId(),
                openid: m._USER_INFO.openid || m._USER_INFO.uid,
                uid: m._USER_INFO.uid,
                sec: +new Date
              };
              t.sign = m.md5("" + t.id + t.openid + t.uid + t.sec + m._USER_INFO.otoken), m.getData(m.HTTP_PLATFORM_STATIC + "tinyadc", t, function (t) {
                1 === t.result ? (f.flag = t.flag, f.publicName = t.publicName || "闪电玩", f.BannerList = t.list || [], t.atStep && (f.atStep = t.atStep, f.preLoadList.push(t.atStep)), function (s, a, t, h) {
                  if (t.show) var r = new l.Loader({
                    list: f.preLoadList, success: function () {
                      t.landscape ? e() : i(), n(), o(), d()
                    }
                  }), e = function () {
                    (u = new l.Node).setVisible(!1), l.addChild(u);
                    var t = new l.React({fillStyle: "rgba(0,0,0,.8)", width: s, height: a, x: 0, y: 0});
                    u.addChild(t);
                    var e = new l.React({
                      width: 1150,
                      fillStyle: "rgba(0,0,0,0)",
                      x: (g - 1150) / 2,
                      y: 173 / l.scale,
                      round: [28, 28, 0, 0]
                    });
                    u.addChild(e);
                    var i = new l.React({
                      fillStyle: "#ff944c",
                      width: 1150,
                      height: 100,
                      x: 0,
                      y: 0,
                      round: [28, 28, 0, 0]
                    });
                    e.addChild(i);
                    var n = "关注【" + f.publicName + "】公众号",
                      o = new l.Font({text: n, fillStyle: "#ffffff", font: "30px Arail", fontSize: 30, x: 30, y: 30});
                    for (i.addChild(o), n = new l.Font({
                      text: "发现更多的小游戏",
                      fillStyle: "#ffffff",
                      font: "24px Arail",
                      fontSize: 24,
                      x: 30 * n.length + 70,
                      y: 35
                    }), i.addChild(n), n = new l.Sprite({
                      texture: r.getRes("http://www.shandw.com/m/wx/finger-icon2.png"),
                      x: 1059,
                      y: -63
                    }), i.addChild(n), i = new l.ListView({
                      width: 1150,
                      padding: [0, 0, 30, 0],
                      x: 0,
                      y: 100,
                      background: "#ffffff"
                    }), e.addChild(i), n = 0; n < f.BannerList.length; n++) c(i, f.BannerList[n], {
                      width: 480,
                      height: 160
                    });
                    f.atStep && (i = r.getRes(f.atStep), i = new l.Sprite({
                      width: i.width,
                      height: i.height,
                      x: 545,
                      y: 150,
                      texture: i
                    }), e.addChild(i)), t.on(t, "tap", function (t) {
                      h.hiddenAD()
                    })
                  }, i = function () {
                    (u = new l.Node).setVisible(!1), l.addChild(u);
                    var t = new l.React({fillStyle: "rgba(0,0,0,.8)", width: s, height: a, x: 0, y: 0});
                    u.addChild(t);
                    var e = new l.React({
                      width: 640,
                      fillStyle: "rgba(0,0,0,0)",
                      x: (g - 640) / 2,
                      y: (m.CLIENT.height / m.CLIENT.width < 2 ? 250 : 350) / l.scale,
                      round: [28, 28, 0, 0]
                    });
                    u.addChild(e);
                    var i = new l.React({
                      fillStyle: "#ff944c",
                      width: 640,
                      height: 130,
                      x: 0,
                      y: 0,
                      round: [28, 28, 0, 0]
                    });
                    e.addChild(i);
                    var n = new l.Font({
                      text: "关注【" + f.publicName + "】公众号",
                      fillStyle: "#ffffff",
                      font: "30px Arail",
                      fontSize: 30,
                      x: 30,
                      y: 30
                    });
                    for (i.addChild(n), n = new l.Font({
                      text: "发现更多的小游戏",
                      fillStyle: "#ffffff",
                      font: "24px Arail",
                      fontSize: 24,
                      x: 30,
                      y: 75
                    }), i.addChild(n), n = new l.Sprite({
                      texture: r.getRes("http://www.shandw.com/m/wx/finger-icon.png"),
                      x: 520,
                      y: -74
                    }), i.addChild(n), i = new l.ListView({
                      width: 640,
                      padding: [0, 0, 30, 0],
                      x: 0,
                      y: 130,
                      background: "#ffffff"
                    }), e.addChild(i), e = 0; e < f.BannerList.length; e++) c(i, f.BannerList[e]);
                    f.atStep && (n = 640 / (e = r.getRes(f.atStep)).width, n = new l.ListViewItem({
                      margin: [30, 30, 0, 30],
                      width: e.width * n,
                      height: e.height * n
                    }), i.addChild(n), n.addChild(new l.Sprite({texture: e}))), t.on("tap", function (t) {
                      h.hiddenAD()
                    })
                  }, c = function (t, e, i) {
                    i = i || {};
                    var n = new l.ListViewItem({
                      margin: [30, 30, 0, 30],
                      width: i.width || 580,
                      height: i.height || 196
                    });
                    return t.addChild(n), t = new l.Sprite({
                      width: i.width || 580,
                      height: i.height || 196,
                      round: [16, 16, 16, 16],
                      drawType: "round",
                      url: e.img || null
                    }), n.addChild(t), n.dataset.bannerInfo = e, t.on("tap", function (t) {
                      (t = p.getChildByName("qr-container").getChildByName("qr-img")) && t.setUrl(n.dataset.bannerInfo.qrcode, {
                        width: 268,
                        height: 268
                      }), o("QrCodeView")
                    }), n
                  }, n = function () {
                    (p = new l.Node).setVisible(!1), l.addChild(p);
                    var t = new l.React({fillStyle: "rgba(0,0,0,.8)", width: s, height: a, x: 0, y: 0});
                    p.addChild(t);
                    var e = new l.React({
                      fillStyle: "#ffffff",
                      width: 640,
                      height: 640,
                      x: (g - 640) / 2,
                      y: l.getStageCenterPosition(640),
                      round: [28, 28, 28, 28],
                      name: "qr-container"
                    });
                    p.addChild(e);
                    var i = new l.Sprite({x: 186, y: 100, name: "qr-img"});
                    e.addChild(i);
                    var n = new l.Font({
                      text: "保存二维码随时玩",
                      fillStyle: "#6a6a6a",
                      font: "28px Arail",
                      fontSize: 28,
                      textAlign: "center",
                      x: 320,
                      y: 415
                    });
                    e.addChild(n), n = new l.Sprite({
                      texture: r.getRes("http://www.shandw.com/m/wx/save-code.png"),
                      x: 128,
                      y: 495
                    }), e.addChild(n), n.on("tap", function (t) {
                      wx.showLoading({title: "二维码正在保存中", mask: !0}), w.getFile({
                        url: i.url, success: function (t) {
                          wx.saveImageToPhotosAlbum({
                            filePath: t, success: function () {
                              wx.showToast({title: "保存图片成功", icon: "success", duration: 2e3})
                            }, fail: function () {
                              wx.showToast({title: "保存图片失败", duration: 2e3})
                            }
                          })
                        }, fail: function (t) {
                          wx.showToast({title: "获取图片失败", duration: 2e3})
                        }
                      })
                    }), t.on("tap", function (t) {
                      o()
                    })
                  }, o = function (t) {
                    "QrCodeView" === t ? (p && p.setVisible(!0), u && u.setVisible(!1)) : (p && p.setVisible(!1), u && u.setVisible(!0)), l.draw()
                  }; else console.log("初始化option.show没有定义"), d()
                }(i, n, e, o)) : e.fail && e.fail(t)
              })
            } else e.fail && e.fail({msg: "请先获取用户信息，然后再创建关注信息"})
          } else e.fail && e.fail({msg: "次关注公众号的信息，只在小游戏环境中使用哦"})
        }
      }
    }, function (t, e, i) {
      function n(t) {
      }

      var s = i(1), a = i(2);
      n.prototype.play = function (t, e) {
        var i = this;
        if (a.onMiniProgram) {
          var n = wx.createInnerAudioContext();
          n.autoplay = !0, n.src = t, n.onError = function (t) {
            console.log(t)
          }
        } else if (n = this.stage.loader.getRes(t)) {
          var o = this.audioContext.createBufferSource();
          o.buffer = n, o.loop = e, o.connect(this.audioContext.destination), o.start(0), o.onended = function () {
          }
        } else new s({
          list: [t], success: function () {
            i.play(t, e)
          }
        })
      }, t.exports = n
    }, function (t, e, i) {
      function n(t) {
        t = t || {}, o.call(this, t), this.text = t.text, this.borderImage = t.borderImage, this.borderMode = t.borderMode || "", this.init()
      }

      var o = i(0), s = i(5), a = i(3), h = i(4);
      (n.prototype = new o).init = function () {
        this.bgNode = this.borderImage ? new s({
          texture: this.borderImage,
          drawType: this.borderMode,
          borderData: {
            dWidth: this.width,
            dHeight: this.height,
            tWidth: this.borderImage.width,
            tHeight: this.borderImage.height,
            top: 30,
            left: 30,
            right: 30,
            bottom: 30
          }
        }) : new a({
          width: this.width,
          height: this.height,
          fillStyle: "#ffffff"
        }), this.addChild(this.bgNode), this.textNode = new h({
          text: this.text,
          maxWidth: this.width,
          maxHeight: this.height,
          lineHeight: this.height,
          fillStyle: "#ffffff",
          textAlign: "center",
          x: this.width / 2,
          y: 0
        }), this.addChild(this.textNode)
      }, n.prototype.setBackgroundNode = function (t) {
        this.bgNode = t
      }, n.prototype.setTextNode = function (t) {
        this.textNode = t
      }, n.prototype.draw = function () {
        this.context.save(), this.context.rect(this.x, this.y, this.width, this.height), this.context.clip(), this._draw(), this.context.restore()
      }, t.exports = n
    }, function (t, e, i) {
      var n = i(2), o = i(5), s = i(3), a = i(4), h = i(0), r = i(1), c = i(12), d = i(13), l = i(11), u = i(14),
        p = i(9), f = i(8), g = null;
      ((e = function (t) {
        return t = t || {}, g || (g = n.onMiniProgram ? null : new window.AudioContext), this.height = t.height, this.scale = t.scale || 1, this.width = t.width, this.scaleRatio = t.scaleRatio || 1, void 0 !== t.autoRefresh ? this.autoRefresh = t.autoRefresh : (this.autoRefresh = !0, requestAnimationFrame(this.draw.bind(this))), "function" == typeof t.update && (this.update = t.update), t.id ? (this.stageId = t.id, this.canvas = document.querySelector("#" + t.id)) : this.canvas = n.onMiniProgram ? wx.createCanvas() : document.createElement("canvas"), this.context = this.canvas.getContext("2d"), this.retina = t.retina, this.canvas.width = this.width, this.canvas.height = this.height, (this.Sprite = o).prototype.context = this.context, ((o.prototype.stage = this).React = s).prototype.context = this.context, ((s.prototype.stage = this).Font = a).prototype.context = this.context, (this.ListView = c).prototype.context = this.context, (this.Button = p).prototype.context = this.context, this.ListViewItem = d, (this.ScrollView = u).prototype.context = this.context, ((u.prototype.stage = this).Loader = r).prototype.audioContext = g, this.loader = new r, ((this.Node = h).prototype.stage = this).EventManger = new l({
          scaleRatio: this.scaleRatio,
          stage: this
        }), (l.prototype.stage = this).audioManager = new f, f.prototype.audioContext = g, (f.prototype.stage = this).context.textBaseline = "top", this.context.scale(this.scale, this.scale), this.NODE_ID = -1, this
      }).prototype = new h).checkRetinaScreen = function () {
        this.canvas.width = this.width, this.canvas.height = this.height, n.onMiniProgram || (this.canvas.style.width = this.width + "px", this.canvas.style.height = this.height + "px", !0 === this.retina && (this.canvas.width = this.width * n.pixelRatio, this.canvas.height = this.height * n.pixelRatio))
      }, e.prototype.setMode = function () {
      }, e.prototype.getStageCenterPosition = function (t) {
        return (this.height - t * this.scale) / 2 / this.scale
      }, e.prototype.setPause = function (t) {
        this.paused = t
      }, e.prototype.draw = function () {
        this.context.clearRect(0, 0, this.width, this.height), this._draw(), this.paused || (this.autoRefresh ? requestAnimationFrame(this.draw.bind(this)) : this.update && this.update())
      }, e.prototype.setRoundClipPath = function (t, e, i, n, o) {
        this.context.beginPath();
        var s = t + i;
        i = t + i;
        var a = e + n;
        n = e + n;
        var h = o[0];
        h ? this.context.moveTo(t + h, e) : this.context.moveTo(t, e);
        var r = o[1];
        r ? (this.context.lineTo(s - r, e), this.context.arcTo(s, e, s, e + r, r)) : this.context.lineTo(s, e), (s = o[2]) ? (this.context.lineTo(i, a - s), this.context.arcTo(i, a, i - s, a, s)) : this.context.lineTo(i, a), (o = o[3]) ? (this.context.lineTo(t + o, n), this.context.arcTo(t, n, t, n - o, o)) : this.context.lineTo(t, n), h ? (this.context.lineTo(t, e + h), this.context.arcTo(t, e, t + h, e, h)) : this.context.lineTo(t, e), this.context.closePath(), this.context.clip()
      }, e.prototype.traverse = function (t, e) {
        if (t || (t = this), t.visible) {
          e && e(t);
          for (var i = t.childNodes, n = 0; n < i.length; n++) this.traverse(i[n], e)
        }
      }, t.exports = e
    }, function (t, e, i) {
      function n(t) {
        t = t || {}, this.scaleRatio = t.scaleRatio || 1, this.stage = t.stage, this.init()
      }

      var o = i(2);
      n.prototype._init = !1, n.prototype.targets = [], n.prototype.collisionDetection = function (t, e) {
        return !!e.visible && (e.x <= t.x && e.x + e.width >= t.x && e.y <= t.y && e.y + e.height >= t.y)
      }, n.prototype.touchStartHandle = function (t) {
        if (this.stage.visible) {
          t = this.getPosition(t);
          for (var e = this.getCollisionNodes(t, !0), i = 0; i < e.length; i++) {
            var n = e[i];
            if (n._touchstart = t, this.emit(n, "touchstart", t), !n.through) break
          }
        }
      }, n.prototype.touchEndHandle = function (t) {
        if (this.stage.visible) {
          t = this.getPosition(t);
          for (var e = this.getCollisionNodes(t, !0), i = 0; i < e.length; i++) {
            var n = e[i];
            if (this.emit(n, "touchend", t), n._touchstart) {
              var o = t.timestamp - n._touchstart.timestamp, s = t.x - n._touchstart.x;
              t.y - n._touchstart.y < 3 && s < 3 && o <= 200 && (n._touchstart = null, this.emit(n, "tap", t))
            }
            if (!n.through) break
          }
          this.emit(this.stage, "touchend", t)
        }
      }, n.prototype.touchMoveHandle = function (t) {
        if (this.stage.visible) {
          t = this.getPosition(t);
          for (var e = this.getCollisionNodes(t, !0), i = 0; i < e.length; i++) {
            var n = e[i];
            if (this.emit(n, "touchmove", t), !n.through) break
          }
          this.emit(this.stage, "touchmove", t)
        }
      }, n.prototype.getCollisionNodes = function (e, t) {
        var i = this, n = [];
        return this.stage.traverse(null, function (t) {
          i.collisionDetection(e, t) && n.push(t)
        }), t && (n.sort(function (t, e) {
          return t.NODE_ID < e.NODE_ID
        }), n.sort(function (t, e) {
          return t.zIndex < e.zIndex ? 1 : t.zIndex > e.zIndex ? -1 : 0
        })), n
      }, n.prototype.getPosition = function (t) {
        var e = {left: 0, top: 0}, i = {x: -1, y: -1};
        switch (o.onMiniProgram || (e = this.engineCanvas ? this.engineCanvas.getBoundingClientRect() : this.stage.canvas.getBoundingClientRect()), t.type) {
          case"mousedown":
          case"mousemove":
          case"mouseup":
            i.x = t.clientX - e.left, i.y = t.clientY - e.top;
            break;
          case"touchend":
          case"touchmove":
          case"touchstart":
          case"ontouchend":
          case"ontouchmove":
          case"ontouchstart":
            i.x = t.changedTouches[0].clientX - e.left, i.y = t.changedTouches[0].clientY - e.top
        }
        return i.x *= this.scaleRatio, i.y *= this.scaleRatio, i.timestamp = +new Date, i
      }, n.prototype.init = function () {
        this._init || (this._init = !0, o.onMiniProgram ? (wx.onTouchStart(this.touchStartHandle.bind(this)), wx.onTouchEnd(this.touchEndHandle.bind(this)), wx.onTouchMove(this.touchMoveHandle.bind(this))) : (this.engineCanvas = document.querySelector("canvas")) && (o.onMobile ? (this.engineCanvas.addEventListener("touchstart", this.touchStartHandle.bind(this), !1), this.engineCanvas.addEventListener("touchend", this.touchEndHandle.bind(this), !1), this.engineCanvas.addEventListener("touchmove", this.touchMoveHandle.bind(this), !1)) : (this.engineCanvas.addEventListener("mousedown", this.touchStartHandle.bind(this), !1), this.engineCanvas.addEventListener("mouseup", this.touchEndHandle.bind(this), !1), this.engineCanvas.addEventListener("mousemove", this.touchMoveHandle.bind(this), !1))))
      }, n.prototype.emit = function (t, e, i) {
        t[e] && (t[e](i), t[e + "-once"] && (t[e] = null))
      }, t.exports = n
    }, function (t, e, i) {
      function n(t) {
        t = t || {}, o.call(this, t), this.background = t.background, (this.padding = t.padding) && (this.height += this.padding[0] + this.padding[2]), this.background && (this.backgroundReact = new s({
          fillStyle: this.background,
          width: this.width,
          height: this.height,
          x: this.x,
          y: this.y,
          round: [0, 0, 32, 32]
        }), this.backgroundReact.hasComputed = !1)
      }

      var o = i(0), s = i(3);
      (n.prototype = new o).addChild = function (t) {
        t.NODE_ID || (t.NODE_ID = t.getNODE_ID()), (t.parentNode = this).childNodes.push(t), this.computedChildPosition(t)
      }, n.prototype.computedChildPosition = function (t) {
        t.x += this.x, t.y += this.y;
        var e = this.childNodes.length;
        1 === e ? t.previousSibling = null : (t.previousSibling = this.childNodes[e - 2], this.childNodes[e - 1].nextSibling = t), t.previousSibling && (t.y = t.previousSibling.y + t.offsetBottom + t.previousSibling.height), t.x += t.offsetLeft, t.y += t.offsetTop, this.height += t.offsetTop + t.height + t.offsetBottom, this.backgroundReact && (this.backgroundReact.height = this.height)
      }, n.prototype.draw = function () {
        this.visible && (this.backgroundReact && (this.parentNode && !this.backgroundReact.hasComputed && (this.backgroundReact.x += this.parentNode.x, this.backgroundReact.y += this.parentNode.y, this.backgroundReact.hasComputed = !0), this.backgroundReact.draw()), this._draw())
      }, t.exports = n
    }, function (t, e, i) {
      function n(t) {
        t = t || {}, o.call(this, t), this.margin = t.margin || [], this.computedPosition(), this.constructorName = "ListViewItem"
      }

      var o = i(0);
      (n.prototype = new o).getIndex = function () {
        if (this.parentNode) for (var t = this.parentNode.childNodes, e = 0; e < t.length; e++) if (t[e] === this) return e;
        return -1
      }, n.prototype.computedPosition = function () {
        var t = this.margin[0], e = this.margin[2], i = this.margin[3];
        this.offsetTop = "number" == typeof t ? t : 0, this.offsetBottom = "number" == typeof e ? e : 0, this.offsetLeft = "number" == typeof i ? i : "auto" === i ? (this.parentNode.width - this.width) / 2 : 0
      }, t.exports = n
    }, function (t, e, i) {
      function n(t) {
        t = t || {}, o.call(this, t), this.zIndex = a++, this.contenHeight = this.maxScrollTop = this.scrollTop = 0, this.addDefaultNode()
      }

      var o = i(0), s = i(3), a = 100;
      (n.prototype = new o).addChild = function (t) {
        this._addChild(t), this.scrollContainer ? (this.scrollContainer.childNodes.push(t), this._initEvent || (this._initEvent = !0, this.addEvent())) : this.childNodes.push(t)
      }, n.prototype.addDefaultNode = function () {
        var t = new o({through: !1});
        this.addChild(t);
        var e = new s({width: this.width, height: this.height, fillStyle: "rgba(0,0,0,0)", through: !1});
        this.addChild(e), this.scrollContainer = t
      }, n.prototype.addEvent = function () {
        var e = this;
        e.touchStartPoint = null, e.touchMovePoint = null, this.on("touchstart", function (t) {
          e.through = !0, e.touchStartPoint = t, e.touchStartPoint.startY = e.scrollContainer.y
        }), this.stage.on("touchmove", function (t) {
          e.touchStartPoint && (e.through = !1, e.touchMovePoint = t, e.scrollContainer.setPosition(e.x, e.touchStartPoint.startY + (e.touchMovePoint.y - e.touchStartPoint.y)))
        }), this.stage.on("touchend", function (t) {
          e.through = !0, e.touchStartPoint && (e.scrollTop = e.scrollContainer.y, e.scrollTop < 0 ? e.scrollTop < -e.maxScrollTop && e.scrollContainer.setPosition(e.x, -e.maxScrollTop) : 0 < e.scrollTop && e.scrollContainer.setPosition(e.x, e.y), e.touchStartPoint = null, e.touchMovePoint = null)
        })
      }, n.prototype.update = function () {
        this.computedContentHeight()
      }, n.prototype.computedContentHeight = function () {
        var t = this.scrollContainer.childNodes;
        if (0 === t.length) return 0;
        for (var e, i = 0, n = 0; n < t.length; n++) i < (e = t[n].y + t[n].height) && (i = e);
        i -= this.scrollContainer.y, this.maxScrollTop = i - this.height, this.contenHeight = i
      }, n.prototype.draw = function () {
        if (this.visible) {
          var t = this.context;
          t.save(), t.beginPath(), t.rect(this.x, this.y, this.width, this.height), t.clip(), this._draw(), t.restore()
        }
      }, t.exports = n
    }, function (t, e, i) {
      var h = i(6), r = i(7);
      t.exports = function (t) {
        if (!t.wxAppId) return console.log("请填入微信小程序的ID（请登录微信后台查看）");
        if (!t.channel) return console.log("请填入channel（闪电玩平台提供的渠道ID）");
        if (!t.appId) return console.log("请填入appId（闪电玩平台提供的游戏ID）");
        var a = this, e = t.wxAppId, i = t.channel, n = t.appId;
        if (a.isMiniProgram = "undefined" != typeof wx, a.onMiniProgram = a.isMiniProgram, a.storeKey = "sdw_user", a.getWxAppId = function () {
          return e
        }, a.getChannel = function () {
          return i
        }, a.getAppId = function () {
          return n
        }, a.createGUI = function (t) {
          var e = "";
          try {
            e = wx.getStorageSync("SDW_GUID") || ""
          } catch (t) {
          }
          if (32 != e.length) {
            e = "";
            for (var i = 0; i < t; i++) e += (65536 * (1 + Math.random()) | 0).toString(16).substring(1);
            try {
              wx.setStorageSync("SDW_GUID", e)
            } catch (t) {
            }
          }
          return e
        }, a.HTTP_USER_STATIC = "https://auth.shandw.com/", a.HTTP_PLATFORM_STATIC = "https://platform.shandw.com/", a.md5 = h, a.wxUserInfo = null, a.userCallback = null, a.successUserCallback = [], a.failUserCallback = [], a.checkState = 0, a.isMiniProgram) {
          try {
            a.wxSystem = wx.getSystemInfoSync(), a.isMiniProgram = !0, /ios/gi.test(a.wxSystem.system) ? a.wxSystem.OS = 2 : a.wxSystem.OS = 1, a.CLIENT = {
              width: this.wxSystem.windowWidth * this.wxSystem.pixelRatio,
              height: this.wxSystem.windowHeight * this.wxSystem.pixelRatio,
              pixelRatio: this.wxSystem.pixelRatio
            }
          } catch (t) {
          }
          wx.getUserInfo({
            lang: "zh_CN", success: function (t) {
              a.wxUserInfo = t.userInfo, a.userCallback && a._sdwGetLogin()
            }, fail: function (t) {
              console.log(" wx.getUserInfo[fail]", t), a.getUserInfoFlag = !0, a.userCallback && a._sdwGetLogin()
            }
          });
          try {
            var o = wx.getStorageSync(a.storeKey);
            o && (a.storeInfo = o)
          } catch (t) {
          }
        } else if (o = window.devicePixelRatio || 1, a.CLIENT = {
          width: (document.documentElement.clientWidth || document.body.clientWidth) * o,
          height: (document.documentElement.clientHeight || document.body.clientHeight) * o,
          pixelRatio: o
        }, window && window.addEventListener && window.addEventListener("message", function (t) {
          if ("string" == typeof t.data) try {
            var e = JSON.parse(t.data);
            if (e.postSdwData) {
              var i = e.data;
              "sdwMiniSDK_getSDWUserInfo_callback" === e.operate && (i.uid ? (i.appid = a.getAppId(), i.channel = a.getChannel(), a.checkState = 2, a._USER_INFO = i, a.emitCallback("success", i)) : a.emitCallback("fail", {msg: "用户信息获取失败"}))
            }
          } catch (t) {
            console.log(t)
          }
        }, !1), a.JS_LOADED_CALLBACK = [], t.useSdw) {
          var s = function (t, e, i) {
            var n = document.getElementsByTagName("HEAD").item(0), o = document.createElement("script");
            o.type = "text/javascript", o.src = t, n.appendChild(o), o.onload = function () {
              "function" == typeof e && e()
            }, o.onerror = function () {
              "function" == typeof i && i()
            }
          };
          s("https://www.shandw.com/libs/js/sdwJs.min.js?v=" + +new Date, function () {
            a.sdw = sdw, s("https://pay.17m3.com/gamepay/dhpay.min.js?v=" + +new Date, function () {
              a.JS_LOADED = !0, a.JS_LOADED_CALLBACK.forEach(function (t) {
                t()
              }), a.JS_LOADED_CALLBACK = []
            }, function () {
              console.log("load dhpay.js fail.")
            })
          }, function () {
            console.log("load sdwJs.js fail.")
          })
        } else a.JS_LOADED = !0;
        a.CLIENT.pixelRatio = Math.max(2, a.CLIENT.pixelRatio), a.createXMLHTTPRequest = function () {
          var t;
          if (window.XMLHttpRequest) (t = new XMLHttpRequest).overrideMimeType && t.overrideMimeType("text/xml"); else if (window.ActiveXObject) for (var e = ["MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], i = 0; i < e.length; i++) try {
            t = new ActiveXObject(e[i]);
            break
          } catch (t) {
          }
          return t
        }, a.getData = function (t, e, i) {
          if (a.isMiniProgram) wx.request({
            url: t,
            data: e,
            header: {"content-type": "application/json"},
            success: function (t) {
              i && i(t.data || {})
            },
            fail: function (t) {
              i && i(t.data || {})
            }
          }); else {
            var n = a.createXMLHTTPRequest();
            if (e) {
              var o, s = [];
              for (o in e) e.hasOwnProperty(o) && s.push(o + "=" + e[o]);
              t = -1 !== t.indexOf("?") ? t + "&" + s.join("&") : t + "?" + s.join("&")
            }
            n.open("GET", t, !0), n.onerror = function () {
              i && i({msg: "[Ajax Error]，请检查网络接口"})
            }, n.onreadystatechange = function () {
              if (4 === n.readyState && 200 === n.status) {
                var t = JSON.parse(n.responseText);
                i && i(t)
              }
            }, n.send(null)
          }
        }, a.emitCallback = function (t, e) {
          if (a.isMiniProgram) try {
            if (wx.getLaunchOptionsSync) {
              var i = wx.getLaunchOptionsSync();
              e.wxScene = i.scene, i.referrerInfo && i.referrerInfo.extraData && (e.wxExtraData = i.referrerInfo.extraData), e.wxQuery = i.query, e.wxIsSticky = i.isSticky
            }
          } catch (t) {
            console.log("getLaunchOptionsSync:", t)
          }
          a[t + "UserCallback"].forEach(function (t) {
            t(e)
          }), a[t + "UserCallback"] = []
        }, a.fastCheckUserInfo = function (t, e, i) {
          a.getData(a.HTTP_USER_STATIC + "wxjsverify", {
            channel: t.channel,
            gid: "2072160460",
            uid: t.uid,
            openid: t.openid,
            token: t.token,
            sec: t.secheme
          }, function (t) {
            1 === t.result ? e && e() : i && i()
          })
        }, a.getAuthInfo = function (t) {
          if ((t = t || {}).success && a.successUserCallback.push(t.success), t.fail && a.failUserCallback.push(t.fail), !a.isMiniProgram) {
            if (window.parent !== window) return void window.parent.postMessage(JSON.stringify({
              postSdwData: !0,
              operate: "sdwMiniSDK_getSDWUserInfo"
            }), "*");
            a.emitCallback("fail", {msg: "[SDK获取用户信息失败]：当前使用环境是H5环境，并不在闪电玩的游戏平台中"})
          }
          a.storeInfo ? (a._USER_INFO = a.storeInfo, 0 === a.checkState ? (a.checkState = 1, a.fastCheckUserInfo(a.storeInfo, function () {
            a.checkState = 2, a.emitCallback("success", a.storeInfo)
          }, function () {
            a.checkState = 0, a.storeInfo = null;
            try {
              wx.removeStorageSync(a.storeKey)
            } catch (t) {
            }
            a.getAuthInfo()
          })) : 2 === a.checkState && a.emitCallback("success", a.storeInfo)) : a.wxUserInfo ? a.getUserInfoFlag ? a.emitCallback("fail", {msg: "wx.getUserInfo[fail]：获取微信用户信息失败"}) : a._sdwGetLogin() : a.userCallback = !0
        }, a._sdwGetLogin = function () {
          var e = {};
          e.appid = a.getWxAppId(), e.channel = a.getChannel(), a.wxUserInfo ? (e.nickName = a.wxUserInfo.nickName, e.avatarUrl = a.wxUserInfo.avatarUrl, e.city = a.wxUserInfo.city, e.country = a.wxUserInfo.country, e.gender = a.wxUserInfo.gender, e.province = a.wxUserInfo.province, e.os = a.wxSystem.OS, wx.login({
            success: function (t) {
              e.jscode = t.code, a.getData(a.HTTP_USER_STATIC + "wxjsauth/", e, function (t) {
                1 === t.result ? (t.avatar = t.avatar || a.wxUserInfo.avatarUrl, t.avatarUrl = t.avatar, t.uid = t.id, t.otoken = t.token, t.secheme = +new Date, t.token = a.md5("" + e.channel + t.uid + t.secheme + t.otoken), t.imei = a.createGUI(8), t.channel = e.channel, t.os = a.wxSystem.OS, t.appid = a.getAppId(), wx.setStorage({
                  key: a.storeKey,
                  data: t
                }), a._USER_INFO = t, a.checkState = 2, a.emitCallback("success", t)) : a.emitCallback("fail", t)
              })
            }, fail: function (t) {
              a.emitCallback("fail", {msg: "wx.login[fail]：获取微信code值失败"})
            }
          })) : a.emitCallback("fail", {msg: "wx.getUserInfo[fail]：获取微信用户信息失败"})
        }, a.onSetShareOperate = function () {
          var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {};
          e.target ? e.target.onShareAppMessage = function (t) {
            return e
          } : (wx.showShareMenu(), e.fastShare ? wx.shareAppMessage(e) : wx.onShareAppMessage(function () {
            return e
          }))
        }, a.postRankInfo = function () {
          var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, t = {};
          return e.id ? e.value ? void(a._USER_INFO && (t.id = e.id, t.appid = a.getAppId(), t.value = e.value, t.uid = a._USER_INFO.uid, t.openid = a._USER_INFO.openid || t.uid, t.nick = a._USER_INFO.nick || t.uid, t.avatar = a._USER_INFO.avatar || "", t.sec = +new Date, t.sign = a.md5("" + t.id + t.appid + t.value + t.openid + t.uid + t.sec + a._USER_INFO.otoken), a.getData(a.HTTP_PLATFORM_STATIC + "rankup", t, function (t) {
            1 === t.result ? e.success && e.success(t) : e.fail && e.fail(t)
          }))) : console.log("缺少游戏数值") : console.log("缺少排行榜的ID")
        }, a.getRankInfo = function () {
          var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {};
          if (!e.id) return console.log("缺少排行榜的ID");
          var t = {id: e.id, appid: a.getAppId(), bef: e.bef || !1, page: e.page || 0};
          a._USER_INFO && (t.uid = a._USER_INFO.uid, t.openid = a._USER_INFO.openid || t.uid, t.sec = a._USER_INFO.secheme, t.sign = a.md5("" + t.id + t.appid + t.openid + t.uid + t.sec + a._USER_INFO.otoken), a.getData(a.HTTP_PLATFORM_STATIC + "ranklist", t, function (t) {
            1 === t.result ? e.success && e.success(t) : e.fail && e.fail(t)
          }))
        }, a.getTinyRankInfo = function () {
          var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {},
            t = {appid: a.getAppId(), page: e.page || 0, type: e.type || 0};
          a._USER_INFO ? (t.uid = a._USER_INFO.uid, t.openid = a._USER_INFO.openid || t.uid, t.token = a._USER_INFO.token, t.sec = a._USER_INFO.secheme, t.sign = a.md5("" + t.appid + t.openid + t.uid + t.sec + a._USER_INFO.otoken), a.getData(a.HTTP_PLATFORM_STATIC + "tinyrank", t, function (t) {
            1 === t.result ? e.success && e.success(t) : e.fail && e.fail(t)
          })) : e.fail && e.fail({msg: "请先获取用户信息后调用"})
        }, a.use_H5_sdw = function () {
          var t = arguments[0], e = Array.prototype.slice.apply(arguments), i = function () {
            sdw[t] && sdw[t](null, e.splice(1))
          };
          a.JS_LOADED && "undefined" != typeof sdw ? i() : a.JS_LOADED_CALLBACK.push(i)
        }, a.sdwAd = r(a), a.getSdwAdInfo = function (t, e, i) {
          a.onMiniProgram ? 2 === a.checkState && a._USER_INFO ? ((t = {
            id: t || a.getAppId(),
            openid: a._USER_INFO.openid || a._USER_INFO.uid,
            uid: a._USER_INFO.uid,
            sec: +new Date
          }).sign = a.md5("" + t.id + t.openid + t.uid + t.sec + a._USER_INFO.otoken), a.getData(a.HTTP_PLATFORM_STATIC + "tinyadc", t, function (t) {
            1 === t.result ? e && e(t) : i && i(t)
          })) : i && i({msg: "请先获取用户信息，然后再创建关注信息"}) : i && i({msg: "次关注公众号的信息，只在小游戏环境中使用哦"})
        }
      }
    }]), cc._RF.pop()
  }, {}], temp: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "7b49ars+cxCWqvQHIL24ywC", "temp"), Object.defineProperty(i, "__esModule", {value: !0});
    var n = cc._decorator, o = n.ccclass, s = (n.property, function (t) {
      function e() {
        return null !== t && t.apply(this, arguments) || this
      }

      return __extends(e, t), e.prototype.onLoad = function () {
        console.log("draw");
        var t = this.getComponent(cc.Graphics);
        t.roundRect(0, 0, 585, 200, 30), t.stroke()
      }, e = __decorate([o], e)
    }(cc.Component));
    i.default = s, cc._RF.pop()
  }, {}], testScene: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "60f89B18ZJH1Ih2gyuniNwu", "testScene");
    var n = t("./wx/wxUtils"), o = t("./utils");
    cc.Class({
      extends: cc.Component,
      properties: {
        display: cc.Sprite,
        restartBtn: cc.Button,
        startBtn: cc.Button,
        shareBtn: cc.Button,
        phbBtn: cc.Button,
        backBtn: cc.Button
      },
      onLoad: function () {
        var t = cc.view.getVisibleSize();
        n.wxUtils.getSharedCanvas().width = t.width, n.wxUtils.getSharedCanvas().height = t.height
      },
      start: function () {
        this.tex = new cc.Texture2D, this.backBtn.node.active = !1
      },
      restartClick: function () {
        o.gameUtils.isRestart = !0, n.wxUtils.postMessage({message: "backGame"}), cc.director.loadScene("GameScene")
      },
      beginClick: function () {
        n.wxUtils.postMessage({message: "backGame"}), cc.director.loadScene("GameScene")
      },
      phbClick: function () {
        n.wxUtils.postMessage({message: "phb"}), this.restartBtn.node.active = !1, this.startBtn.node.active = !1, this.shareBtn.node.active = !1, this.phbBtn.node.active = !1, this.backBtn.node.active = !0
      },
      backClick: function () {
        "js" === window.Game.toPhbType ? (n.wxUtils.postMessage({message: "back"}), this.restartBtn.node.active = !0, this.startBtn.node.active = !0, this.shareBtn.node.active = !0, this.phbBtn.node.active = !0, this.backBtn.node.active = !1) : "start" === window.Game.toPhbType ? (n.wxUtils.postMessage({message: "backGame"}), cc.director.loadScene("StartScene", null)) : (n.wxUtils.postMessage({message: "back"}), this.restartBtn.node.active = !0, this.startBtn.node.active = !0, this.shareBtn.node.active = !0, this.phbBtn.node.active = !0, this.backBtn.node.active = !1)
      },
      shareClick: function () {
        o.sdkUtils.onShare()
      },
      _updaetSubDomainCanvas: function () {
        this.tex && (this.tex.initWithElement(n.wxUtils.getSharedCanvas()), this.tex.handleLoadedTexture(), this.display.spriteFrame = new cc.SpriteFrame(this.tex))
      },
      update: function (t) {
        this._updaetSubDomainCanvas()
      }
    }), cc._RF.pop()
  }, {"./utils": "utils", "./wx/wxUtils": "wxUtils"}], utils: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "d4064vjsMhAMay1j6yyTuww", "utils"), Object.defineProperty(i, "__esModule", {value: !0});
    var n = t("./wx/wxUtils"), o = t("./sdk/sdwWx"), s = function () {
      function t() {
        this.isInit = !1, this.openId = null, this.id = null, this.adCanvas = null, this.adObj = null
      }

      return t.prototype.init = function () {
        return __awaiter(this, void 0, void 0, function () {
          return __generator(this, function (t) {
            switch (t.label) {
              case 0:
                return n.wxUtils.isWechat ? (this.sdk = new o({
                  wxAppId: "wxf3a961d82eec3762",
                  channel: "10667",
                  appId: "2055907532"
                }), this.setShare(), [4, this.getAuthInfo()]) : (this.isInit = !0, [2]);
              case 1:
                return t.sent(), [2]
            }
          })
        })
      }, t.prototype.getAuthInfo = function () {
        var t = this;
        return new Promise(function (i, e) {
          t.sdk.getAuthInfo({
            success: function (e) {
              return __awaiter(t, void 0, void 0, function () {
                return __generator(this, function (t) {
                  return this.openId = e.openid, this.id = e.id, this.isInit = !0, i(e), [2]
                })
              })
            }, fail: function (t) {
              e(t)
            }
          })
        })
      }, t.prototype.getAdCanvas = function (t, e) {
        if (this.sdk) {
          var i = cc.view.getVisibleSize(), n = this;
          this.onShow = t, this.onHidden = e;
          var o = new this.sdk.sdwAd({
            width: i.width,
            height: i.height,
            landscape: !1,
            id: "2055907532",
            create: function (t) {
            },
            fail: function (t) {
              console.log("创建失败：", t)
            },
            show: function (t) {
              n.onShow(t)
            },
            hidden: function () {
              n.onHidden()
            }
          });
          this.adObj = o
        }
      }, t.prototype.showAD = function () {
        this.adObj.showAD()
      }, t.prototype.onHidden = function () {
      }, t.prototype.onShow = function (t) {
      }, t.prototype.setShare = function () {
        this.onShare(!1)
      }, t.prototype.onShare = function (t) {
        if (void 0 === t && (t = !0), this.sdk) {
          var e = .5 < Math.random() ? "http://cdn.app.m3guo.com/img/20186/5b2a466e047ec.png" : "http://cdn.app.m3guo.com/img/20186/5b2a4669cdf96.png";
          this.sdk.onSetShareOperate({
            title: "萌喵上月球", imageUrl: e, query: "", fastShare: t, success: function (t) {
            }, fail: function (t) {
            }
          })
        }
      }, t
    }(), a = function () {
      this.isRestart = !1
    };
    i.gameUtils = new a, i.sdkUtils = new s, cc._RF.pop()
  }, {"./sdk/sdwWx": "sdwWx", "./wx/wxUtils": "wxUtils"}], wxUtils: [function (t, e, i) {
    "use strict";
    cc._RF.push(e, "43442ayUHdE84a0O4r1VO/8", "wxUtils"), Object.defineProperty(i, "__esModule", {value: !0});
    var n = function () {
      function t() {
        this.isWechat = !1, this.isWechat = cc.sys.platform === cc.sys.WECHAT_GAME
      }

      return t.prototype.getSharedCanvas = function () {
        return this.isWechat ? sharedCanvas : {}
      }, t.prototype.postMessage = function (t) {
        this.isWechat && wx.postMessage(t)
      }, t.prototype.showLoading = function (t) {
        this.isWechat && wx.showLoading(t)
      }, t.prototype.hideLoading = function () {
        this.isWechat && wx.hideLoading()
      }, t.prototype.setBootstrap = function () {
        this.isWechat ? wx.setStorage({key: "bootstrap", data: "1"}) : localStorage.setItem("bootstrap", "1")
      }, t.prototype.getBootstrapSync = function () {
        return this.isWechat ? wx.getStorageSync("bootstrap") : localStorage.getItem("bootstrap")
      }, t
    }();
    i.wxUtils = new n, cc._RF.pop()
  }, {}]
}, {}, ["BeginScene", "Bootstrap", "Camera_Control", "GameScene", "Main", "Player", "SmallBell", "SmallBellMgr", "sdwWx", "testScene", "utils", "wxUtils", "lanuch", "temp"]);